Optimal. Leaf size=76 \[ -\frac {(d \cot (e+f x))^{1+n}}{d f (1+n)}-\frac {2 (d \cot (e+f x))^{3+n}}{d^3 f (3+n)}-\frac {(d \cot (e+f x))^{5+n}}{d^5 f (5+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2687, 276}
\begin {gather*} -\frac {(d \cot (e+f x))^{n+5}}{d^5 f (n+5)}-\frac {2 (d \cot (e+f x))^{n+3}}{d^3 f (n+3)}-\frac {(d \cot (e+f x))^{n+1}}{d f (n+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2687
Rubi steps
\begin {align*} \int (d \cot (e+f x))^n \csc ^6(e+f x) \, dx &=\frac {\text {Subst}\left (\int (-d x)^n \left (1+x^2\right )^2 \, dx,x,-\cot (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \left ((-d x)^n+\frac {2 (-d x)^{2+n}}{d^2}+\frac {(-d x)^{4+n}}{d^4}\right ) \, dx,x,-\cot (e+f x)\right )}{f}\\ &=-\frac {(d \cot (e+f x))^{1+n}}{d f (1+n)}-\frac {2 (d \cot (e+f x))^{3+n}}{d^3 f (3+n)}-\frac {(d \cot (e+f x))^{5+n}}{d^5 f (5+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 73, normalized size = 0.96 \begin {gather*} -\frac {\left (8+6 n+n^2-2 (3+n) \cos (2 (e+f x))+\cos (4 (e+f x))\right ) \cot (e+f x) (d \cot (e+f x))^n \csc ^4(e+f x)}{f (1+n) (3+n) (5+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.86, size = 10874, normalized size = 143.08
method | result | size |
risch | \(\text {Expression too large to display}\) | \(10874\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 84, normalized size = 1.11 \begin {gather*} -\frac {\frac {\left (\frac {d}{\tan \left (f x + e\right )}\right )^{n + 1}}{d {\left (n + 1\right )}} + \frac {2 \, d^{n} \tan \left (f x + e\right )^{-n}}{{\left (n + 3\right )} \tan \left (f x + e\right )^{3}} + \frac {d^{n} \tan \left (f x + e\right )^{-n}}{{\left (n + 5\right )} \tan \left (f x + e\right )^{5}}}{f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.98, size = 153, normalized size = 2.01 \begin {gather*} -\frac {{\left (8 \, \cos \left (f x + e\right )^{5} - 4 \, {\left (n + 5\right )} \cos \left (f x + e\right )^{3} + {\left (n^{2} + 8 \, n + 15\right )} \cos \left (f x + e\right )\right )} \left (\frac {d \cos \left (f x + e\right )}{\sin \left (f x + e\right )}\right )^{n}}{{\left ({\left (f n^{3} + 9 \, f n^{2} + 23 \, f n + 15 \, f\right )} \cos \left (f x + e\right )^{4} + f n^{3} + 9 \, f n^{2} - 2 \, {\left (f n^{3} + 9 \, f n^{2} + 23 \, f n + 15 \, f\right )} \cos \left (f x + e\right )^{2} + 23 \, f n + 15 \, f\right )} \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.58, size = 123, normalized size = 1.62 \begin {gather*} -\frac {{\left (\frac {d\,\cos \left (e+f\,x\right )}{2\,\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}\right )}^n\,\left (5\,\cos \left (e+f\,x\right )-\frac {5\,\cos \left (3\,e+3\,f\,x\right )}{2}+\frac {\cos \left (5\,e+5\,f\,x\right )}{2}+5\,n\,\cos \left (e+f\,x\right )-n\,\cos \left (3\,e+3\,f\,x\right )+n^2\,\cos \left (e+f\,x\right )\right )}{f\,{\sin \left (e+f\,x\right )}^5\,\left (n+1\right )\,\left (n+3\right )\,\left (n+5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________